/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package vehicle.bol;

import java.util.ArrayList;
import vehicle.dal.DAL;
import vehicle.entity.Abums;

/**
 *
 * @author caodangtinh
 */
public class AlbumBol {
    public boolean addVehicleImage(Abums abums) {
        boolean flag = false;
        DAL dal = new DAL();
        ArrayList listParam = new ArrayList();
        listParam.add(abums.getVehiclID());
        listParam.add(abums.getImgName());
        listParam.add(abums.getImgUrl());
        try {
            dal.executeUpdateQuery("sp_addVehicleImage", listParam);
            flag = true;
        } catch (Exception e) {
            flag = false;
        }
        //
        return flag;
    }
}
